<?php
namespace common\models;

use Yii;
use yii\base\Model;
use yii\db\ActiveRecord;

Class Log extends ActiveRecord
{
    //数据库表名
    public static function tableName()
    {
        return '{{%log}}';
    }

    public function rules()
    {
        return[
            [['uid','username','m','c','a'],'required','message'=>'必填'],
            [['ip','type','url','data','inputtime'],'default','value'=>''],
        ];
    }
}